﻿using System;
using System.Collections.Generic;
using Rabbit.Logic;

namespace RabbitManage.UI
{
    public partial class OrderHistory : System.Web.UI.Page
    {
        protected List<string> logList = new List<string>();

        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request["id"];
            if (string.IsNullOrEmpty(id)) return;

            OrderLog log = RabbitUse.GetOrderLogByOrderId(Db.Store, id);
            if (log != null)
            {
                logList = log.LogList;
            }
            myRepeater.DataSource = logList;
            myRepeater.DataBind();
        }
    }
}